'use strict';

const Controller = require('egg').Controller;

class OauthController extends Controller {
  async authorize() {
    this.ctx.body = 'authorize';
  }
  async authenticate() {
    this.ctx.logger.info(this.ctx.state.oauth)
    this.ctx.body = this.ctx.state.oauth.token;
  }
}

module.exports = OauthController;